#include "StdAfx.h"
#include "loadOverEvent.h"

loadOverEvent::loadOverEvent(osgEarth::Util::EarthManipulator *camera)
{
	 thiscamera = camera;
}
void loadOverEvent::Run()
{
 
	osgEarth::Viewpoint tmpview=	thiscamera.get()->getViewpoint();
	//tmpview.x()  =115.28;
	//tmpview.y() =38.53;
	//tmpview.setRange(2000);
	thiscamera.get()->setViewpoint( tmpview,3);
}
osgViewer::NodeLoadCompleteDEvent * loadOverEvent::asParent()
{
	return dynamic_cast<osgViewer::NodeLoadCompleteDEvent *>(this);
}
loadOverEvent::~loadOverEvent(void)
{
}
